<!--
*Author：
 *Contact：
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/workbusiness/MANU_PROCESS_INTERCEPTION_LOG.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/system/workbusiness/MANU_PROCESS_INTERCEPTION_LOG.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'Id',
                footer: "Foots",
                cnName: '拦截日志',
                name: 'workbusiness/MANU_PROCESS_INTERCEPTION_LOG',
                url: "/MANU_PROCESS_INTERCEPTION_LOG/",
                sortName: "CreateOn"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'Id',title:'id',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'InterceptRule',title:'拦截规则',type:'string',width:110,align:'left',sort:true},
                       {field:'Order_Id',title:'工单',type:'string',bind:{ key:'工单（没有Id）',data:[]},width:110,align:'left'},
                       {field:'OperationId',title:'工序',type:'string',bind:{ key:'工序',data:[]},width:110,align:'left'},
                       {field:'InterceptType',title:'拦截类型',type:'string',bind:{ key:'拦截类型',data:[]},width:110,align:'left'},
                       {field:'Level',title:'拦截层级',type:'string',bind:{ key:'拦截层级',data:[]},width:110,align:'left'},
                       {field:'Condition',title:'拦截条件',type:'string',width:110,align:'left'},
                       {field:'Reason',title:'拦截原因',type:'string',width:110,align:'left'},
                       {field:'Status',title:'状态',type:'string',width:110,align:'left'},
                       {field:'Handler',title:'处理人',type:'string',width:110,align:'left'},
                       {field:'ReleaseTime',title:'解除时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'InterceptionTime',title:'拦截时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'CreateBy',title:'创建人',type:'string',width:110,hidden:true,align:'left'},
                       {field:'CreateOn',title:'创建时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'UpdateBy',title:'更新人',type:'string',width:110,hidden:true,align:'left'},
                       {field:'LastUpdateOn',title:'更新时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'IsDeleted',title:'逻辑删除 0/不删除 1/已删除',type:'bool',width:110,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
